package com.binarystar.examination;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

import com.binarystar.examination.bean.SubjectBean;
import com.binarystar.examination.service.impl.SubjectServiceImp;

public class Test {

	public static void main(String[] args) throws IOException {
		FileOutputStream file = new FileOutputStream("Examination.txt");
		SubjectServiceImp cms = new SubjectServiceImp();
		//SubjectBean[] txt = 
		cms.creatSubject(5,"1");
		SubjectBean cos = new SubjectBean();
		
		System.out.println("kaishi");
		String str= cos.getSubject();
		System.out.println(str);
		System.out.println(str.length());
		//OutputStreamWriter osw =new OutputStreamWriter(file,"UTF-8");
		
		//for(int j=0;j<txt.length ;j++){
		/*String str= cos.getSubject();
		System.out.println(str);
		System.out.println(str.length());
		for(int i =0;i<str.length();i++){
			oos.write('1');
		oos.write(str.charAt(i));
		//oos.write(cos.getSubject());
		//oos.write(cos.getChoice()[i]+"");
		
		}
		//}
		oos.close();
		
		
		//ObjectInputStream oob = new ObjectInputStream(new FileInputStream("Examination.txt"));
		
		//System.out.println("wanbi");
		
		
		
		*/
	}

}
